<template>
  <van-swipe class="my-swipe" :autoplay="auto" indicator-color="#1989fa">
    <van-swipe-item v-for="item in swiper" :key="item.id">
      <img :src="item.image_url" alt />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  props: {
    swiper: Array,
    auto: Number
  }
};
</script>

<style lang="less" scoped>
.van-swipe {
  img {
    width: 100%;
  }
}
</style>